package akaram.foxinfire.voladora;

/**
 *
 * Componente Cabina
 *
 *
 *  Toda voladora debe tener algo de estructura interna
 *
 */
public class Cabina extends Componente
{
	int modelo;

	public float peso()
	{
		switch( modelo )
		{
		case 1:
			return (float)30.0;
		case 2:
			return (float)45.0;
		case 3:
			return (float)6.0;
		case 4:
			return (float)33.0;
		case 5:
			return (float)48.0;
		case 6:
			return (float)20.0;
		case 7:
			return (float)50.0;
		case 8:
			return (float)60.0;
		}
		return (float)30.0;
	}

	public float potencia()
	{
		switch( modelo )
		{
		case 1:
			return (float)0.0;
		case 2:
			return (float)0.0;
		case 3:
			return (float)0.0;
		case 4:
			return (float)160.0;
		case 5:
			return (float)0.0;
		case 6:
			return (float)0.0;
		case 7:
			return (float)160.0;
		case 8:
			return (float)0.0;
		}
		return (float)0.0;	
	}

	public float precio()
	{
		switch( modelo )
		{
		case 1:
			return (float)30000.0;
		case 2:
			return (float)40000.0;
		case 3:
			return (float)5000.0;
		case 4:
			return (float)100000.0;
		case 5:
			return (float)100000.0;
		case 6:
			return (float)150000.0;
		case 7:
			return (float)150000.0;
		case 8:
			return (float)200000.0;
		}
		return (float)30000.0;
	}

	public int resistencia()
	{
		switch( modelo )
		{
		case 1:
			return 10;
		case 2:
			return 15;
		case 3:
			return 1;
		case 4:
			return 10;
		case 5:
			return 20;
		case 6:
			return 10;
		case 7:
			return 20;
		case 8:
			return 25;
		}
		return 10;
	}

	public int pierdeCon()
	{
		return resistencia();
	}

	public String nombre()
	{
		switch( modelo )
		{
		case 1:
			return "Prima de Imperial Tubs";
		case 2:
			return "Duo de Imperial Tubs";
		case 3:
			return "Motorcycle de Moot Tubs";
		case 4:
			return "Ladys' Light de Lady Tech";
		case 5:
			return "Force de Dolghur Tubs";
		case 6:
			return "Speed Racer de Lady Tech";
		case 7:
			return "Miner de WE DO CHEAPER";
		case 8:
			return "Tovarish de Volstog Tech";
		}
		return "Desconocida";
	}
	
	public String descripcion()
	{
		String desc;

		desc = nombre() + " Peso: " + peso() + " Kg  Capacidad: ";

		switch( modelo )
		{
		case 1:
			desc = desc + "100 Kg ";
			break;
		case 2:
			desc = desc + "200 Kg ";
			break;
		case 3:
			desc = desc + "100 Kg ";
			break;
		case 4:
			desc = desc + "70 Kg ";
			break;
		case 5:
			desc = desc + "120 Kg ";
			break;
		case 6:
			desc = desc + "60 Kg ";
			break;
		case 7:
			desc = desc + "100 Kg ";
			break;
		case 8:
			desc = desc + "100 Kg ";
			break;
		}
		
		desc = desc + " Precio: " + precio() + " Cr ";
		desc = desc + " Resistencia: " + resistencia() + " ";
		desc = desc + " P/R: " + (precio()/resistencia())*(float)1.2;

		return desc;
	}

	public Cabina( int clase )
	{
		tipo = 12;
		descTipo = "Cabina";
		modelo = clase;
	}	

	public static void main( String args[] )
	{
		Cabina f = new Cabina ( 1 );
	
		System.out.println( f.descripcion() );
	}
}   